
package com.daxt.common.config;

import com.daxt.webservice.AcceptWebService;
import org.apache.cxf.Bus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.ws.Endpoint;



/**
 * 对外接口的配置类
 */

@Configuration
public class AcceptWebConfig {

    @Autowired
    private Bus bus;

    @Autowired
    private AcceptWebService acceptWebService;

    @Bean
    public Endpoint endpoint() {
        EndpointImpl endpoint = new EndpointImpl(bus, acceptWebService);
        endpoint.publish("/receiveArchiveRequest");
        return endpoint;
    }


   /* @Bean
    public Endpoint endpoint2() {
        EndpointImpl endpoint = new EndpointImpl(bus, acceptWebService);
        endpoint.publish("/feedback");
        return endpoint;
    }*/



}
